<!doctype html>
<html>
{include file="head.html"}

<body>
<div class="page">
<div class="header" style="">
<a  class="left-btn" href="/index.php"><span class="iconfont icon-back"></span></a>
<div class="title">有奖爆料</div>
 
</div>
<div class="main-body">
<div class="o">
	<style>
    	.row-textarea{margin:0px 12px; margin-bottom:10px;}
		.row-textarea  textarea{width:100%; height:100px; margin-left:-5px;}
    </style>
    <input type="hidden" name="id" id="id" value="{$data.id}">
    <div class="row-textarea">
    	<textarea style="height:200px" id="content">{$data.content}</textarea>
    </div>
    {assign var="tablename" value="guest"}
     	 {include file="picsup.html"} 
    <div  style="margin-top:10px;"><button type="button" id="guest-submit" class="btn btn-larger btn-row btn-success">提交爆料</button></div> 

</div>

</div>
<script>
$(function(){
	 
	$(document).on("click","#guest-submit",function(){
		if($("#content").val()==''){
			skyToast('请填写爆料内容');
			return false;
		}
		$.post("/index.php?m=guest&a=save&ajax=1",{content:$("#content").val(),id:$("#id").val()},function(data){
			if(data.error){
				skyToast(data.message);
			}else{
				skyToast('感谢您的爆料','success');
				goBack();
				 
			}
		},"json");
	});
});
</script>
{include file="footer.html"}
</div>
</body>
</html>
